<?php
namespace app\controller;

use app\service\BarrageService;
use app\service\DealWithXMLService;
use app\service\MinioService;
use app\service\ParsingXMLService;

class Index extends BasicController
{

    protected BarrageService $barrageService;

    public function initialize()
    {
        parent::initialize();
        $this->barrageService = new BarrageService();
    }

    public function index(): string
    {
        return "Index";
    }
    public function test() {
        (new ParsingXMLService())->parsingXML([
            "id"        => 1,
            "room_id"   => "23029299",
            "file_date" => "2022-01-07",
            "file_path" => "23029299-鱼一YY/录制-23029299-20220107-210135-612-鱼一丫丫来啦！！！！.xml",
            "file_name" => "录制-23029299-20220107-210135-612-鱼一丫丫来啦！！！！.xml"
        ]);
    }

}